package pattern.observer.example2;

import java.util.Observable;

import pattern.observer.example2.validator.DefaultAuthenticateValidator;
import pattern.observer.example2.validator.RoleAuthenticateValidator;
import pattern.observer.example2.validator.UserAuthenticateValidator;

public class AuthenticateValidator extends Observable implements
		IAuthenticateValidator {

	public AuthenticateValidator() {
		this.addObserver(new DefaultAuthenticateValidator());
		this.addObserver(new RoleAuthenticateValidator());
		this.addObserver(new UserAuthenticateValidator());
	}

	public void execute() {
		setChanged();
		notifyObservers();
	}

}
